import { mapToList } from '@/utils'
import type { MapProps } from '@/const/index'

// 订单状态
// 订单状态 ""-全部 0-待付款 1-已付款 2-待收货 3-待评价 4-已完成 9-已取消
export const ORDER_STATUS_COLOR_MAP: MapProps = {
	0: '--error-color',
	1: '--primary-color',
	2: '--warning-color',
	3: '--text-color-2',
	4: '--success-color',
	9: '--text-color-disabled',
}
export const ORDER_STATUS_MAP: MapProps = {
	0: '待付款',
	1: '已付款',
	2: '待收货',
	3: '待评价',
	4: '已完成',
	9: '已取消',
}
export const ORDER_STATUS_LIST = mapToList(ORDER_STATUS_MAP)

// 快递状态 0-已下单 1-已发货 2-已揽件 3-运输中 4-派送中 -5待取件
export const TICKET_STATUS_MAP: MapProps = {
	0: '已下单',
	1: '已发货',
	2: '已揽件',
	3: '运输中',
	4: '派送中',
	5: '待取件',
}
export const TICKET_STATUS_LIST = mapToList(TICKET_STATUS_MAP)

// 售后订单状态 10-退款中 11-已退款 12-已拒绝
export const ORDER_AFTER_STATUS_MAP: MapProps = {
	10: '退款中',
	11: '已退款',
	12: '已拒绝',
}
export const ORDER_AFTER_STATUS_LIST = mapToList(ORDER_AFTER_STATUS_MAP)

export const DELIVER_TYPE_MAP: MapProps = {
	1: "邮寄",
	2: "自提",
	3: "顺风车配送"
};
export const DELIVER_TYPE_LIST = mapToList(DELIVER_TYPE_MAP)

export const DEDUCT_OPPOSITE_MAP: MapProps = {
	SELLER:'卖家',
	BUYER:'买家',
	NONE:'都不扣(只针对竞拍订单)',
}
export const DEDUCT_OPPOSITE_LIST = mapToList(DEDUCT_OPPOSITE_MAP)

export const REFUND_POST_FEE_MAP: MapProps = {
	0:'不退',
	1:'退',
}
export const REFUND_POST_FEE_LIST = mapToList(REFUND_POST_FEE_MAP)
